package com.tbit.uqbike.webmanager.controller;

import com.tbit.uqbike.object.view.JsonResult;
import com.tbit.uqbike.webmanager.map.TXHttpClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author jing
 * @date 2021/3/916:11
 * @Description:
 */
@RestController
@RequestMapping("/tool")
public class ToolController extends BaseController {

    @GetMapping("/address")
    public JsonResult address(Double lo, Double ln) {
        String address = TXHttpClient.getAddress(lo, ln);
        return toAjax(address);
    }

}
